
package net.swa.index.service;

import java.util.Map;

import net.swa.index.beans.entity.Members;

public interface IndexService
{

    Map<String, Object> login(String email , String mobi , String password , String mac);

    Map<String, Object> saveRegister(String mobi , String code , String email , String nickname , String password , String mac);

    Map<String, Object> saveCode(String mobi , String mac);

    Map<String, Object> updatePassword(Long uid , String password , String oldpassword);

    Map<String, Object> updateNick(Long uid , String nickname);

    Map<String, Object> updatePhoto(Long uid , String imgUrl);

    Map<String, Object> updateBgImg(Long uid , String imgUrl);

    Map<String, Object> updateMyImgs(Long uid , String photoUrl , String bgUrl);

    /**
     * 发送重设密码权限连接
     * @param email
     * @return
     */
    Map<String, Object> updateSendEmail(String email);

    /**
     * 检测email是否具有重置密码权限
     * @param email
     * @param secret
     * @return
     */
    Members queryCheckEmailSecret(String email , String secret);

    boolean updatePswBySecret(Long id , String secret , String password);

    Map<String, Object> updateCode(String mobi , String mac);

    Map<String, Object> updatePswByCode(String mobi , String code , String password);

}
